import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ArticleLeftNav extends StatefulWidget {
  ArticleLeftNav();

  @override
  createState() => new ArticleLeftNavState();
}

class ArticleLeftNavState extends State<ArticleLeftNav> {
  @override
  Widget build(BuildContext context) {
    return new Container(
      width: 150,
      // color: Colors.grey,
      padding: const EdgeInsets.only(top: 10),
      child: ListView(
        // padding: const EdgeInsets.all(8),
        children: <Widget>[
          Container(
            height: 50,
            // color: Colors.amber[600],
            color: Colors.blue,
            child: new FlatButton(
              onPressed: () {},
              child: Text(
                "为你推荐",
                style:
                    TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
              ),
            ),
          ),
          Container(
            height: 50,
            // color: Colors.amber[600],
            //color: Colors.blue,
            child: new FlatButton(
              onPressed: () {},
              child: Text(
                "热门",
                style:
                    TextStyle(color: Colors.grey, fontWeight: FontWeight.bold),
              ),
            ),
          ),
          Container(
            height: 50,
            // color: Colors.amber[600],
            //color: Colors.blue,
            child: new FlatButton(
              onPressed: () {},
              child: Text(
                "最新",
                style:
                    TextStyle(color: Colors.grey, fontWeight: FontWeight.bold),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
